<?php namespace App\Http\Controllers\Api\User;

use App\Http\Controllers\Controller;
use App\Api\Models\User;
use App\Api\Auth\LoginService;

class UserController extends Controller{
    
//    获取验证码
    public function getVerifyCode() {
        $res = with(new User())->getVerifyCode();
        return json_encode($res,JSON_UNESCAPED_UNICODE);
    }
//    注册
    public function reg() {
        $res = with(new User())->register();
        return json_encode($res,JSON_UNESCAPED_UNICODE);
    }
//    登录
    public function login() {
        $res = with(new User())->register();
        return json_encode($res,JSON_UNESCAPED_UNICODE);
    }
//    获取用户信息
    public function getUserInfo() {
        $res = with(new User())->getUserInfo();
        return json_encode($res,JSON_UNESCAPED_UNICODE);
    }
//    更新用户信息
    public function upUserInfo() {
        $res = with(new User())->upUserInfo();
        return json_encode($res,JSON_UNESCAPED_UNICODE);
    }
    
    public function getUserMoney() {
        $res = with(new User())->getUserMoney();
        return json_encode($res,JSON_UNESCAPED_UNICODE);
    }
    public function getUserAddMoneyList() {
        $res = with(new User())->getUserAddMoneyList();
        return json_encode($res,JSON_UNESCAPED_UNICODE);
    }
    public function UserAddMoney() {
        $res = with(new User())->UserAddMoney();
        return json_encode($res,JSON_UNESCAPED_UNICODE);
    }
    public function getUserRendlst() {
        $res = with(new User())->getUserRendlst();
        return json_encode($res,JSON_UNESCAPED_UNICODE);
    }
    public function getUserAppOutMoneylist() {
        $res = with(new User())->getUserAppOutMoneylist();
        return json_encode($res,JSON_UNESCAPED_UNICODE);
    }
    public function getUserAppOutMoney() {
        $res = with(new User())->getUserAppOutMoney();
        return json_encode($res,JSON_UNESCAPED_UNICODE);
    }
    public function UserRent() {
        $res = with(new User())->UserRent();
        return json_encode($res,JSON_UNESCAPED_UNICODE);
    }
    public function getUserRend() {
        $res = with(new User())->getUserRend();
        return json_encode($res,JSON_UNESCAPED_UNICODE);
    }
    public function UserReturn() {
        $res = with(new User())->UserReturn();
        return json_encode($res,JSON_UNESCAPED_UNICODE);
    }
    public function UserAddYJMoney() {
        $res = with(new User())->UserAddYJMoney();
        return json_encode($res,JSON_UNESCAPED_UNICODE);
    }
    public function isUserYJMoney() {
        $res = with(new User())->isUserYJMoney();
        return json_encode($res,JSON_UNESCAPED_UNICODE);
    }
    public function isYJStatus() {
        $res = with(new User())->isYJStatus();
        return json_encode($res,JSON_UNESCAPED_UNICODE);
    }
    public function RtUserYj() {
        $res = with(new User())->RtUserYj();
        return json_encode($res,JSON_UNESCAPED_UNICODE);
    }
    public function getUserXingZhi() {
        $res = with(new User())->getUserXingZhi();
        return json_encode($res,JSON_UNESCAPED_UNICODE);
    }
    public function getTXMoney() {
        $res = with(new User())->getTXMoney();
        return json_encode($res,JSON_UNESCAPED_UNICODE);
    }
    public function OpenBox() {
        $res = with(new User())->OpenBox();
        return json_encode($res,JSON_UNESCAPED_UNICODE);
    }
    public function mReturnOpenBox() {
        $res = with(new User())->mReturnOpenBox();
        return json_encode($res,JSON_UNESCAPED_UNICODE);
    }
   
}